import React from 'react'

import '../public/css/dialogimg.scss'

class DialogImg extends React.Component{
    constructor(props){
        super(props);
    }
    handleClose(){
        this.props.isDialogImgShow('false','')
    }
    render(){
        return(
            <div className={(this.props.dialogimg === "true") ? "imgbox" : "hide"} onClick={this.handleClose.bind(this)}>
                <div className="mask"></div>
                <div>
                    <img src={this.props.dialogimgSrc} alt=""/>
                </div>
            </div>
        )
    }
}

export default DialogImg